package com.boss.fileapp.entity;

import com.boss.fileapp.util.DateUtils;
import com.boss.sys.utils.SysUtils;

import java.io.Serializable;

public class FileSendLog implements Serializable {

    /**
     * 主键
     */
    private String id;
    /**
     * 修改时间
     */
    private String updateTime;
    /**
     * 创建时间
     */
    private String createTime;
    /**
     * 文件名称
     */
    private String fileName;
    /**
     * 是否发送
     */
    private Integer isSend;
    /**
     * 发送时间
     */
    private String sendTime;
    /**
     * 发给银行编码
     */
    private String sendBankCode;
    /**
     * 文件类型别名
     */
    private String fileActionType;
    /**
     * 区划
     */
    private String mofDivCode;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Integer getIsSend() {
        return isSend;
    }

    public void setIsSend(Integer isSend) {
        this.isSend = isSend;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    public String getSendBankCode() {
        return sendBankCode;
    }

    public void setSendBankCode(String sendBankCode) {
        this.sendBankCode = sendBankCode;
    }

    public String getFileActionType() {
        return fileActionType;
    }

    public void setFileActionType(String fileActionType) {
        this.fileActionType = fileActionType;
    }

    public String getMofDivCode() {
        return mofDivCode;
    }

    public void setMofDivCode(String mofDivCode) {
        this.mofDivCode = mofDivCode;
    }

    public FileSendLog(){}

    public FileSendLog(String fileName, String bankCode, String fileActionType, String province){
        this.id = SysUtils.generateGuid();
        this.updateTime = DateUtils.getCurrentTimeStr(null);
        this.createTime = DateUtils.getCurrentTimeStr(null);
        this.fileName = fileName;
        this.isSend = 0;
        this.sendBankCode = bankCode;
        this.fileActionType = fileActionType;
        this.mofDivCode = province;
    }

    public FileSendLog(String fileName){
        this.updateTime = DateUtils.getCurrentTimeStr(null);
        this.fileName = fileName;
        this.isSend = 1;
        this.sendTime = DateUtils.getCurrentTimeStr(null);
    }

}
